<h3><?php echo $this->title?></h3>
<div style="color:red;"><?php echo $this->errMessage;?></div>
<div class="upload-image">
<form action="/admin/position/save" method="post" enctype="multipart/form-data">
    <table class="table table-bordered table-striped">
        <tbody>
             <tr>
                 <td>Tên album</td>
                 <td>
                     <input type="text" name="name" id="name" value="<?php echo $this->position['position_name'];?>">
                 </td>
             </tr>
             <tr>
                 <td>Bìa album
                     <?php if($this->position['image']) {?>
                         <img src="<?php echo Utils_Global::get('staticUrl') . '/banner/' . $this->position['image']?>" alt="<?php echo $this->position['image']?>" width="50" height="50">
                     <?php }?>
                 </td>
                 <td>
                     <input type="file" name="file" id="file" accept="image/*" title="Chỉ chấp nhận các định dạng hình ảnh (png, jpg, jpge, gif)">
                 </td>
             </tr>
             <tr>
                <td colspan="2">
                    <input type="submit" value="Lưu"/>
                    <a href="/admin/position/list?album=2">Hủy</a>
                </td> 
             </tr>
        </tbody>
      </table>
      <input type="hidden" value="<?php echo $this->id?>" name="id" id="id"/>
      <input type="hidden" value="2" name="collection" id="collection"/>
</form>
</div>